/** @format */

import Vue from "vue";

async function request(url, param) {
  return new Promise(resolve => {
    Vue.jsonp(url, param).then(rs => {
      resolve(rs);
    });
  });
}

export default {
  request
};
